
package com.projects.core.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

/**
 * Rest Api接口鉴权

 */
public class RestApiInteceptor extends HandlerInterceptorAdapter {

	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
			throws Exception {
		if (handler instanceof org.springframework.web.servlet.resource.ResourceHttpRequestHandler) {
			return true;
		}
		return check(request, response);
	}

	private boolean check(HttpServletRequest request, HttpServletResponse response) {
		
		
		return true;
	}

}
